// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once


#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers Windows Header Files:

#pragma warning(disable: 4996)

#include <windows.h>


#ifdef ARKGRAPHIC_EXPORTS
#define ARKGRAPHIC_API __declspec(dllexport)
#else
#define ARKGRAPHIC_API __declspec(dllimport)
#endif

#ifdef USE_WS_MEMORY


#include "ArkDebugMemory.h"

//namespace ArkGraphic
{
	class GraphicFunName
	{
	public:
		static const char* Name()
		{
			static const char str[]="Graphic";
			return str;
		}
	};
}
using //namespace ArkGraphic;

#pragma warning (push)
#pragma warning (disable:4290)
inline void* CDECL operator new( size_t stAllocateBlock,const char* szFileName,unsigned int uSize)throw(std::bad_alloc)
{
	void *ret=CMemory::instance().memalloc(stAllocateBlock,szFileName,uSize);
#if defined(_DEBUG)
	CMemory::instance().relink(ret,CCookieSingleton<GraphicFunName>::instance().GetCookie());
#endif
	return ret;
}
#pragma warning(pop)


#endif
